package com.qingmeng.outsourcing.portal.model.dto;

import com.qingmeng.outsourcing.model.ProjectFiles;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;

import java.util.List;

/*
数据传输对象（DTO）(Data Transfer Object)
 */

/**
 * 用户注册的时候，前端传递到后端的数据参数
 */
public class UserRegisterParam {
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "手机号")
    private String phone;
    @ApiModelProperty(value = "短信验证码")
    private String code;
    @ApiModelProperty(value = "身份标识，1-雇主，2-开发者")
    private Integer identity; //一定要用类进行修饰变量，因为如果前端什么都没有输入，会返回null，而int接收不了null就会报错


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    @Override
    public String toString() {
        return "UserRegisterParam{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", code='" + code + '\'' +
                ", identity=" + identity +
                '}';
    }
}
